EasyPQC.FileOperations
WARNING: THIS FUNCTION DOES NOT WORK AND IS EXPERIMENTAL. THE WIKI FOR THIS IS OUTDATED AS I TEST OUT METHODS TO MAKE IT WORK.
Represents a file that has been packed (compressed and optionally encrypted) with its associated signature.
Fields:
Methods:
Defines the level of compression for LZ4 compression.
Delegate for reporting the progress of a file compression or decompression operation.
Compresses a file asynchronously using LZ4 and reports progress.
Parameters:
Returns: Task: The path to the compressed file.
Decompresses a file asynchronously using LZ4 and reports progress.
Parameters:
Returns: Task: The path to the decompressed file.
Hashes a file asynchronously using Blake3.
Parameters:
Returns: Task<byte[]>: The computed hash of the file.
Verifies the integrity of a file by comparing its hash to a provided signature.
Parameters:
Returns: Task: true if the hash matches the signature, otherwise false.
Compresses a file, creates a signed hash, and optionally encrypts the file.
Parameters:
Returns: Task: A PackedFile containing the packed file and its signature.
Unpacks and decompresses a file, verifying its signature and decrypting it if necessary.
Parameters:
Returns: Task: true if the file was successfully unpacked and verified, otherwise false.